package com.guiwu.gteway.industryapp.Data;

import com.guiwu.gteway.industryapp.Device.module.GateWay;
import com.guiwu.gteway.industryapp.Device.module.User;

public interface MDataSource {

    interface GetUserInfoCallback {
        void onUserInfo(User user);
        void onDataNotAvailable(String msg);
    }

    void getUserInfo(String userId ,GetUserInfoCallback callback);

    interface DeviceShareNameCallback {
        void onDeviceINfo(GateWay gateWay);
        void onDataNotAvailable(String msg);
    }
    void getDeviceShareName(String sn, DeviceShareNameCallback callback);

    interface DeviceConnectTypeCallback{
        void onDeviceInfo(GateWay gateWay);
        void onDataNotAvailable(String msg);
    }

    void getDeviceConnectType(String sn,DeviceConnectTypeCallback callback);
}
